package com.yang.api.controller;

import com.yang.api.filter.CheckFilterContext;
import com.yang.common.model.StandardSubmit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试校验链的效果
 */
@RestController
public class TestController {

    @Autowired
    private CheckFilterContext checkFilterContext;

    @GetMapping("/api/test")
    public void test(){
        System.out.println("====================================");
        checkFilterContext.check(new StandardSubmit());
    }
}
